package com.hai.bean;

import java.util.HashSet;
import java.util.Set;


/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer UId;
	private String UName;
	private String USex;
	private Integer UAge;
	private String UNickname;
	private String UPassword;
	private transient Set<Message> messagesForMSender = new HashSet<Message>(0);
	private transient Set<Group> groups = new HashSet<Group>(0);
	private transient Set<Friendship> friendshipsForHostId = new HashSet<Friendship>(0);
	private transient Set<Message> messagesForMReceiver = new HashSet<Message>(0);
	private transient Set<Friendship> friendshipsForFriendId = new HashSet<Friendship>(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String UNickname, String UPassword) {
		this.UNickname = UNickname;
		this.UPassword = UPassword;
	}

	/** full constructor */
	public User(String UName, String USex, Integer UAge, String UNickname,
			String UPassword, Set<Message> messagesForMSender,
			Set<Group> groups, Set<Friendship> friendshipsForHostId,
			Set<Message> messagesForMReceiver,
			Set<Friendship> friendshipsForFriendId) {
		this.UName = UName;
		this.USex = USex;
		this.UAge = UAge;
		this.UNickname = UNickname;
		this.UPassword = UPassword;
		this.messagesForMSender = messagesForMSender;
		this.groups = groups;
		this.friendshipsForHostId = friendshipsForHostId;
		this.messagesForMReceiver = messagesForMReceiver;
		this.friendshipsForFriendId = friendshipsForFriendId;
	}

	// Property accessors

	public Integer getUId() {
		return this.UId;
	}

	public void setUId(Integer UId) {
		this.UId = UId;
	}


	public String getUName() {
		return this.UName;
	}

	public void setUName(String UName) {
		this.UName = UName;
	}


	public String getUSex() {
		return this.USex;
	}

	public void setUSex(String USex) {
		this.USex = USex;
	}


	public Integer getUAge() {
		return this.UAge;
	}

	public void setUAge(Integer UAge) {
		this.UAge = UAge;
	}


	public String getUNickname() {
		return this.UNickname;
	}

	public void setUNickname(String UNickname) {
		this.UNickname = UNickname;
	}


	public String getUPassword() {
		return this.UPassword;
	}

	public void setUPassword(String UPassword) {
		this.UPassword = UPassword;
	}

	
	public Set<Message> getMessagesForMSender() {
		return this.messagesForMSender;
	}

	public void setMessagesForMSender(Set<Message> messagesForMSender) {
		this.messagesForMSender = messagesForMSender;
	}

	
	public Set<Group> getGroups() {
		return this.groups;
	}

	public void setGroups(Set<Group> groups) {
		this.groups = groups;
	}

	
	public Set<Friendship> getFriendshipsForHostId() {
		return this.friendshipsForHostId;
	}

	public void setFriendshipsForHostId(Set<Friendship> friendshipsForHostId) {
		this.friendshipsForHostId = friendshipsForHostId;
	}

	
	public Set<Message> getMessagesForMReceiver() {
		return this.messagesForMReceiver;
	}

	public void setMessagesForMReceiver(Set<Message> messagesForMReceiver) {
		this.messagesForMReceiver = messagesForMReceiver;
	}

	
	public Set<Friendship> getFriendshipsForFriendId() {
		return this.friendshipsForFriendId;
	}

	public void setFriendshipsForFriendId(Set<Friendship> friendshipsForFriendId) {
		this.friendshipsForFriendId = friendshipsForFriendId;
	}

}